package com.youlu.campus.entity;

import com.youlu.campus.base.base.EntityBase;
import lombok.Data;
import org.springframework.data.mongodb.core.index.CompoundIndex;
import org.springframework.data.mongodb.core.index.CompoundIndexes;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

@Data
@Document(collection = "dictConfig")
@CompoundIndexes({
        @CompoundIndex(name = "dic_comIdx",def = "{'dicTypeName':1,'dicCode':1}")
})
public class DictConfig extends EntityBase {

    /**
     * 数据类型
     */
    @Indexed
    private String dicTypeName;

    @Indexed( unique = true)
    private String dicCode;
    /**
     * 中文描述
     */
    private String dicNameCn;
    /**
     * 英文描述
     */
    private String dicNameEn;

    private Integer orderNumber =0;
}
